<%@ page import="com.tmpt.utils.StringUtils" %>
<%@ page import="java.net.URLDecoder" %>
<%@ page import="org.json.JSONObject" %>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%
// 从上一页面点击row过来，传了row id 过来
//pageContext.setAttribute("_prePageListId",request.getParameter("_id"));
pageContext.setAttribute("_prePageListId",request.getParameter("_id")==null?"":request.getParameter("_id"));
//Row Text
String _row = request.getParameter("row")==null?"":request.getParameter("row");
if(!StringUtils.isNull(_row)){
	_row = URLDecoder.decode(_row, "utf-8");
	_row = URLDecoder.decode(_row,"utf-8");
	JSONObject jsonObject = new JSONObject(_row);
	String registerDataNumber = jsonObject.optString("registerDataNumber");
	pageContext.setAttribute("_registerDataNumber", registerDataNumber);
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>	
<script type="text/javascript">
var isIe = $.browser.msie;
var valueFilterNum = 0;

//定义全局变量记录分页信息  
var paramData = {  
 page:1,
 rows:60,
 sortOrder:'desc', 
 sortColumn:''
};  
var msgOut={};

$(function(){
    $(pager).pagination({
        displayMsg: '<span style="color: red; margin-right: 100px;"></span>' +
        '当前显示 {from} - {to} 条记录   共 {total} 条记录'
    });
})

</script>
<style type="text/css">
/*.condition{
	float:left;
	height:25px;
	border:1px solid #fff;
}
.condition .mylabel{
	width:100px;
	float:left;
	border:0px solid #fff;
	margin-top: 5px;
}
.condition .myinput{
	width:200px;
	float:left;
	border:0px solid #fff;
}
.condition .myfilter{
	width:200px;
	float:left;
	border:0px solid #fff;
}

.clearboth{
	clear:both;
}*/

</style>
</head>

<%@taglib uri="/struts-tags" prefix="s" %>  
<body>
<div class="easyui-layout" data-options="fit:true"  id="conditionNorth" style="visibility:hidden;">
	<div data-options="region:'east'" style="width:100px;text-align:center; ">
		<div style="height: 2px;"></div>
		<a id='queryBtn_Filter' href='#' class='easyui-linkbutton' data-options="iconCls:'icon-search'" onclick='javascript:queryBtn_Filter();'>查询</a>
	</div>
	<div data-options="region:'center'" style="overflow:hidden;  padding-left: 3px;padding-top: 3px;">
		<div id="_conditionContentDiv" style="border: 0px solid red;">
			<script type="text/javascript">
				var columnPropertyArr = new Array();
				var columnPropertyTypeArr = new Array();
			</script>
			<div class="condition">
				<div class="item">
					<label class="mylabel">队员：</label>
					<div class="myinput">
						<!-- 动态通过SQL取值 -->
						<s:select
								id="a2userId"
								name="a2userId"
								value="%{#attr._prePageListId}"
								list="#attr._selectOptions4a2userId.list4condition"
								listKey="keyName"
								listValue="valueName"
								theme="simple"
								cssStyle="width:100px"
								data-options="editable:false"
								cssClass="easyui-combobox"/>
					</div>
					<script type="text/javascript">
						columnPropertyArr[columnPropertyArr.length] = 'a2userId';
						columnPropertyTypeArr[columnPropertyTypeArr.length] = 'combobox';
					</script>
				</div>
			</div>

			<div class="condition">
				<div class="item">
					<label class="mylabel">任务状态：</label>
					<div class="myinput">
						<!-- 数据字典取值 -->
						<s:select
								id="owTaskStatus"
								name="owTaskStatus"
								value=""
								list="#attr._enumData.OwTaskStatus4condition"
								listKey="keyName"
								listValue="valueName"
								theme="simple"
								cssStyle="width:100px"
								data-options="editable:false"
								cssClass="easyui-combobox"/>
					</div>
					<script type="text/javascript">
						columnPropertyArr[columnPropertyArr.length] = 'owTaskStatus';
						columnPropertyTypeArr[columnPropertyTypeArr.length] = 'combobox';
					</script>
				</div>
			</div>
			<div class="condition">
				<div class="dateitem">
					<!-- 日期范围 -->
					<label class="mylabel">完成日期：</label>
					<div class="myinput" style="width: 420px;">
						<input type="text" id="dealTime_Start" name="dealTime_Start"  size='18'
							   class='easyui-datebox' data-options={editable:true} />
						~
						<input type="text" id="dealTime_End" name="dealTime_End"  size='18'
							   class='easyui-datebox' data-options={editable:true} />
					</div>
					<script type="text/javascript">
						columnPropertyArr[columnPropertyArr.length] = 'dealTime_Start';
						columnPropertyArr[columnPropertyArr.length] = 'dealTime_End';
						columnPropertyTypeArr[columnPropertyTypeArr.length] = 'date';
						columnPropertyTypeArr[columnPropertyTypeArr.length] = 'date';
					</script>
				</div>
			</div>

			<div class="condition">
				<div class="item">
					<label class="mylabel">登记数据编号：</label>
					<div class="myinput">
						<input type="text" class="easyui-textbox" id="registerDataNumber" name="registerDataNumber" placeholder=""
							   value="${_registerDataNumber}"/>
					</div>
					<script type="text/javascript">
						columnPropertyArr[columnPropertyArr.length] = 'registerDataNumber';
						columnPropertyTypeArr[columnPropertyTypeArr.length] = 'input';
					</script>
				</div>
			</div>
			<div class="condition">
				<div class="item">
					<label class="mylabel">标题：</label>
					<div class="myinput">
						<input type="text" class="easyui-textbox" id="name" name="name" placeholder="模糊查询"/>
					</div>
					<script type="text/javascript">
					columnPropertyArr[columnPropertyArr.length] = 'name';
					columnPropertyTypeArr[columnPropertyTypeArr.length] = 'input';
					</script>
				</div>
			</div>
			<div class="condition">
				<div class="dateitem">
					<!-- 日期范围 -->
					<label class="mylabel">创建日期：</label>
					<div class="myinput" style="width: 420px;">
						<input type="text" id="createdate_Start" name="createdate_Start"  size='18'
							class='easyui-datebox' data-options={editable:false} />
						~
						<input type="text" id="createdate_End" name="createdate_End"  size='18'
							   class='easyui-datebox' data-options={editable:false} />
					</div>
					<script type="text/javascript">
					columnPropertyArr[columnPropertyArr.length] = 'createdate_Start';
					columnPropertyArr[columnPropertyArr.length] = 'createdate_End';
					columnPropertyTypeArr[columnPropertyTypeArr.length] = 'date';
					columnPropertyTypeArr[columnPropertyTypeArr.length] = 'date';
					</script>
				</div>
			</div>


			<div class="clearboth"></div>
			<div style="height: 0px;"></div>
		</div>
	</div>
</div>			
</body>
</html>